import request from '@/utils/request'

export function upload(files) {
  var param = new FormData()
  param.append('files', files[0].raw)
  return request({
    url: '/sys/file/upload',
    method: 'upload',
    data: param
  })
}
